package com.itheima.api;

import cn.hutool.core.util.ObjectUtil;
import com.itheima.mapper.PmsProductVertifyRecordMapper;
import com.itheima.pojo.db.PmsProductVertifyRecord;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class PmsProductVertifyRecordApiImpl implements PmsProductVertifyRecordApi {
    @Autowired
    private PmsProductVertifyRecordMapper pmsProductVertifyRecordMapper;

    @Override
    public void insertList(List<PmsProductVertifyRecord> list) {
        if (ObjectUtil.isNotEmpty(list)) {
            for (PmsProductVertifyRecord record : list) {
                pmsProductVertifyRecordMapper.insert(record);
            }
        }
    }
}
